home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / MM-INIT.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  47 lines

  1. /*
  2.  * linux/include/asm-arm/mm-init.h
  3.  *
  4.  * Copyright (C) 1997,1998 Russell King
  5.  *
  6.  * Contained within are structures to describe how to set up the
  7.  * initial memory map.  It includes both a processor-specific header
  8.  * for parsing these structures, and an architecture-specific header
  9.  * to fill out the structures.
  10.  */
  11. #ifndef __ASM_MM_INIT_H
  12. #define __ASM_MM_INIT_H
  13.  
  14. typedef enum {
  15.     // physical address is absolute
  16.     init_mem_map_absolute,
  17.     /* physical address is relative to start_mem
  18.      *  as passed in paging_init
  19.      */
  20.     init_mem_map_relative_start_mem
  21. } init_memmap_type_t;
  22.  
  23. typedef struct {
  24.     init_memmap_type_t type;
  25.     unsigned long physical_address;
  26.     unsigned long virtual_address;
  27.     unsigned long size;
  28. } init_memmap_t;
  29.  
  30. #define INIT_MEM_MAP_SENTINEL { init_mem_map_absolute, 0, 0, 0 }
  31. #define INIT_MEM_MAP_ABSOLUTE(p,l,s) { init_mem_map_absolute,p,l,s }
  32. #define INIT_MEM_MAP_RELATIVE(o,l,s) { init_mem_map_relative_start_mem,o,l,s }
  33.  
  34. /*
  35.  * Within this file, initialise an array of init_mem_map_t's
  36.  * to describe your initial memory mapping structure.
  37.  */
  38. #include <asm/arch/mm-init.h>
  39.  
  40. /*
  41.  * Contained within this file is code to read the array
  42.  * of init_mem_map_t's created above.
  43.  */
  44. #include <asm/proc/mm-init.h>
  45.  
  46. #endif
  47.